package xiaoqi.qingyue.api.basic.user.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 92110
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user")
public class User {
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer id;
    @TableField("username")
    private String username;
    @TableField("password")
    private String password;
    @TableField("nickname")
    private String nickname;
    @TableField("avatar")
    private String avatar;
    @TableField("slogan")
    private String slogan;
    @TableField("created_time")
    private String createTime;
    @TableField("updated_time")
    private String updateTime;
    @TableField("status")
    private Character status;
    @TableField("role")
    private Character role;

    public User(Integer id, Character status) {
        this.id = id;
        this.status = status;
    }
}
